package com.supkong.factory.abstractor;

import com.supkong.factory.Fruit;
import com.supkong.factory.function.AppleFactory;
import com.supkong.factory.function.BananaFactory;
import com.supkong.factory.function.LemonFactory;

/**
 * @author Kong
 * @date 2018/09/25
 * describe:
 */
public class FruitFactory extends FruitFactoryAbstract{
    @Override
    public Fruit getBanana() {
        return new BananaFactory().getFruit();
    }

    @Override
    public Fruit getApple() {
        return new AppleFactory().getFruit();
    }

    @Override
    public Fruit getLemon() {
        return new LemonFactory().getFruit();
    }
}
